package com.newegg.nlp.arangodb.dao;

import com.newegg.nlp.arangodb.BasicDao;
import com.newegg.nlp.arangodb.model.Adjective;

public interface AdjectiveDao extends BasicDao<Adjective>{

	default Adjective getOrCreate(String adjective) {
		Adjective adj = get(adjective);
		if(adj == null) {
			adj = new Adjective();
			adj.setId(adjective);
			adj.setName(adjective);
			saveNotExist(adj);
		}
		return adj;
	};
}
